

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang.StringUtils;

public class GenerateCoupon implements Serializable {
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 生成id
     */
    private String generateId;

    /**
     * 满足商家店铺消费金额（用户获取券条件）
     */
    private String meetBusinessConsumption;

    /**
     * 满足本业务消费金额（使用条件）
     */
    private String meetConsumption;

    /**
     * 业务类型
     */
    private String businessType;

    /**
     * 免费类型
     */
    private String freeType;

    /**
     * 优惠券有效期类型（相对时间1/绝对时间2）
     */
    private String relativeAbsoluteTime;

    /**
     * 优惠券有效开始时间
     */
    private Date effectiveStartTime;

    /**
     * 优惠券有效结束时间
     */
    private Date effectiveEndTime;

    /**
     * 优惠券使用时间段(开始时间)
     */
    private Date useStartTime;

    /**
     * 优惠券使用时间段(结束时间)
     */
    private Date useEndTime;

    /**
     * 优惠券有效使用天数
     */
    private String effectiveUseDays;

    /**
     * 区域类型(1.车场 2.地区 3.平台)
     */
    private String areaType;

    /**
     * 模版id
     */
    private String templateId;

    /**
     * 优惠券状态(1.启用2.禁用3.删除)
     */
    private String couponStatus;

    /**
     * 商家id
     */
    private String businessId;

    /**
     * 来源
     */
    private String source;

    /**
     * 角色
     */
    private String role;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人
     */
    private String updator;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 使用区域
     */
    private String useArea;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGenerateId() {
        return generateId;
    }

    public void setGenerateId(String generateId) {
        this.generateId = generateId == null ? null : generateId.trim();
    }

    public String getMeetBusinessConsumption() {
        return meetBusinessConsumption;
    }

    public void setMeetBusinessConsumption(String meetBusinessConsumption) {
        this.meetBusinessConsumption = meetBusinessConsumption == null ? null : meetBusinessConsumption.trim();
    }

    public String getMeetConsumption() {
        return meetConsumption;
    }

    public void setMeetConsumption(String meetConsumption) {
        this.meetConsumption = meetConsumption == null ? null : meetConsumption.trim();
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType == null ? null : businessType.trim();
    }

    public String getFreeType() {
        return freeType;
    }

    public void setFreeType(String freeType) {
        this.freeType = freeType == null ? null : freeType.trim();
    }

    public String getRelativeAbsoluteTime() {
        return relativeAbsoluteTime;
    }

    public void setRelativeAbsoluteTime(String relativeAbsoluteTime) {
        this.relativeAbsoluteTime = relativeAbsoluteTime == null ? null : relativeAbsoluteTime.trim();
    }

    public Date getEffectiveStartTime() {
        return effectiveStartTime;
    }

    public void setEffectiveStartTime(Date effectiveStartTime) {
        this.effectiveStartTime = effectiveStartTime;
    }

    public Date getEffectiveEndTime() {
        return effectiveEndTime;
    }

    public void setEffectiveEndTime(Date effectiveEndTime) {
        this.effectiveEndTime = effectiveEndTime;
    }

    public Date getUseStartTime() {
        return useStartTime;
    }

    public void setUseStartTime(Date useStartTime) {
        this.useStartTime = useStartTime;
    }

    public Date getUseEndTime() {
        return useEndTime;
    }

    public void setUseEndTime(Date useEndTime) {
        this.useEndTime = useEndTime;
    }

    public String getEffectiveUseDays() {
        return effectiveUseDays;
    }

    public void setEffectiveUseDays(String effectiveUseDays) {
        this.effectiveUseDays = effectiveUseDays == null ? null : effectiveUseDays.trim();
    }

    public String getAreaType() {
        return areaType;
    }

    public void setAreaType(String areaType) {
        this.areaType = areaType == null ? null : areaType.trim();
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId == null ? null : templateId.trim();
    }

    public String getCouponStatus() {
        return couponStatus;
    }

    public void setCouponStatus(String couponStatus) {
        this.couponStatus = couponStatus == null ? null : couponStatus.trim();
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId == null ? null : businessId.trim();
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source == null ? null : source.trim();
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role == null ? null : role.trim();
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdator() {
        return updator;
    }

    public void setUpdator(String updator) {
        this.updator = updator == null ? null : updator.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUseArea() {
        return useArea;
    }

    public void setUseArea(String useArea) {
        this.useArea = useArea == null ? null : useArea.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", generateId=").append(generateId);
        sb.append(", meetBusinessConsumption=").append(meetBusinessConsumption);
        sb.append(", meetConsumption=").append(meetConsumption);
        sb.append(", businessType=").append(businessType);
        sb.append(", freeType=").append(freeType);
        sb.append(", relativeAbsoluteTime=").append(relativeAbsoluteTime);
        sb.append(", effectiveStartTime=").append(effectiveStartTime);
        sb.append(", effectiveEndTime=").append(effectiveEndTime);
        sb.append(", useStartTime=").append(useStartTime);
        sb.append(", useEndTime=").append(useEndTime);
        sb.append(", effectiveUseDays=").append(effectiveUseDays);
        sb.append(", areaType=").append(areaType);
        sb.append(", templateId=").append(templateId);
        sb.append(", couponStatus=").append(couponStatus);
        sb.append(", businessId=").append(businessId);
        sb.append(", source=").append(source);
        sb.append(", role=").append(role);
        sb.append(", creator=").append(creator);
        sb.append(", createTime=").append(createTime);
        sb.append(", updator=").append(updator);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", useArea=").append(useArea);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
    public boolean parameterIsValidation() {
		Boolean flag = true;
		if(StringUtils.isEmpty(businessType)||StringUtils.isEmpty(freeType)||StringUtils.isEmpty(templateId)
				||StringUtils.isEmpty(businessId)){
			flag = false;
		}
		return flag;
}
}